An author by another name
authorStephen Becker IV <github@deathbyescalator.com>
Mon, 16 May 2016 05:44:30 +0000 (22:44 -0700)
committerStephen Becker IV <github@deathbyescalator.com>
Mon, 16 May 2016 23:50:50 +0000 (16:50 -0700)
commit91e40657ae822a14adad6fdc5d4fc4b6061f3b1c
treed0ee8cc924b2c233aa8ca5a7e30aa53ab3866321
parent8bdec5eb4540692a2d17d67ae9cf6b262f956b1e
An author by another name

Dearest Reviewer

This is to support environment variables for name and email more like
git. This closes #1213 . I did look in to using libgit2 but I did not
see a clear way to get the author ident. This just moves from or_else
chaining to map_filter with env checks and getting the nth(0) result.

The docs I found
https://git-scm.com/book/en/v2/Git-Internals-Environment-Variables#Committing
do not really indicate an order of preference to the variables. I am
more then happy to rearrange the arrays in anyway.

Thanks for reviewing,
Becker
src/cargo/ops/cargo_new.rs
tests/test_cargo_new.rs